package com.ysxm.service.adminservice;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.ibatis.annotations.Param;

import com.ysxm.entity.Admin;

		
public interface AdminService {

	public Admin findAdminById(Integer aid);

	public List<Admin> selectAllAdmin();
	public List<Admin> findAllAdmin(int pageNum, int pageSize);
	//按管理員名查詢
/*	public boolean selectAdminByName(String aname);*/

	public List<Admin> findAdminListBy(Admin admin);

	public boolean addAdmin(Admin admin);

	public boolean updateAdmin(Admin admin);

	public void deleteAdmin(Integer aid);
	public Admin adLogin(String aname,String apassword,HttpSession session);
	//通过用户名和邮箱找回密码
		public void findAdminByUE(String apassword,String email);

}
